// 进入应用时的欢迎界面中的内容
const config = require("../../myconfig.js").config;
function entranceRequest(authentication){
  return new Promise((resolve, reject)=>{
    wx.request({
      url: config.serverApi + "entrance",
      method: "POST",
      data: {
        "authenticationInfo": authentication
      },
      success: function (res) {
        console.log("utils/welcome/entrance获得到个人信息并且返回data", res);
        resolve(res.data)
      },
      error: function (err) {
        reject(err)
      },
    })
  })
}
module.exports={
  entranceRequest
}